/*
 * @Author: your name
 * @Date: 2021-09-29 09:08:31
 * @LastEditTime: 2021-09-29 09:08:31
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: /tdf-ui-quasar-sample/src/demo/api/classGrade.js
 */
import request from "@folder-outside-request/request";

const base_url = "/sample/depart/";

export function queryAllClassGrades() {
  return request({
    url: base_url + "findTree",
    method: "get"
  });
}

export function queryGradeById(id) {
  return request({
    url: base_url + id,
    method: "get"
  });
}

export function addGrade(data) {
  return request({
    url: base_url,
    method: "post",
    data
  });
}

export function editGrade(data) {
  return request({
    url: base_url,
    method: "put",
    data
  });
}

export function delGrade(id) {
  return request({
    url: base_url + id,
    method: "delete"
  });
}

export function queryAllDeptUsers(deptInfoId) {
  return request({
    url: base_dept_user_url + "findUsersByDeptInfoId",
    method: "get",
    params: { deptInfoId }
  });
}

export function delDeptUser(data) {
  return request({
    url: base_dept_user_url + "delete",
    method: "delete",
    data
  });
}
